package com.flyduck.system.vo.user.trans;


import cn.hutool.core.bean.BeanUtil;
import com.flyduck.system.entity.SysUserEntity;
import com.flyduck.system.vo.user.SysUserDetailRespVO;
import com.google.common.base.Function;


/**
 * @program: flyduck-platform
 * @description:
 * @author: flyduck
 * @create: 2021-02-01 12:42
 **/
public class SysUserEntityToSysUserDetailRespVO implements Function<SysUserEntity, SysUserDetailRespVO> {


    @Override
    public SysUserDetailRespVO apply(SysUserEntity entity) {
        SysUserDetailRespVO respVO = new SysUserDetailRespVO();
        BeanUtil.copyProperties(entity,respVO);
        respVO.setId(entity.getId() + "");
        respVO.setDeptId(entity.getDeptId() + "");
        return respVO;
    }
}
